<html>
<head>
<title>File Uploading Form</title>
</head>
<%
	String context = request.getContextPath();
	String notice = request.getParameter("error");
	String message = "";
	if(notice == null || notice.equals("")){
		notice = request.getParameter("name");
		if(notice != null && !notice.equals("")){
			message = "Upload successfull file with name: " + notice;
		}
	}else{
		if("1".equals(notice)){
			message = "Wrong file name!: ";
		}
		if("2".equals(notice)){
			
		}
	}
%>
<body>
	<h3>File Upload:</h3>
	Select a file to upload:
	<br />
	<form action="<%=context%>/TEST/server.jsp" method="post"
		enctype="multipart/form-data">
		<input type="file" name="file" size="50" /> <br /> <input
			type="submit" value="Upload File" />
	</form>
	<span id="message"><%=message %></span>
</body>
</html>